package com.tianji.learning.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * TODO
 *
 * @Author whx
 * @Date 2025/1/11 20:01
 */
@Mapper
public interface SignRecordMapper {

    @Select("select count(*) from tj_learning.points_record where user_id = #{userId} and type = 2")
    Integer countByUserId(Long userId);
}
